package com.flushbonading.classsystem.mapper;

import com.flushbonading.classsystem.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author zyx 2134208960@qq.com
 * @date 2021/11/8 16:45
 * @since 1.0.0
 */
@Mapper
public interface UserMapper {
    /**
     * 通过工号或学号查询用户
     * @param userId 工号/学号
     * @return
     */
    User getUserByUserId(@Param("userId") String userId);

    /**
     * 插入一个用户
     * @param user 用户信息
     * @return
     */
    Integer insertUser(@Param("user") User user);
}
